/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package KnightsTour.GUI;

import javax.swing.ImageIcon;
import javax.swing.JLabel;

/**
 *
 * @author Scott Robinson
 */
public class KnightImage extends JLabel {
    private final static String KN_IMG = "Sprites/Knight.jpg"; // location of the knight sprite
    private final static String BLK_KN_IMG = "Sprites/BlackKnight.gif"; // backup knight image for monty python fans

    public KnightImage () {
        super();
        setIcon(new ImageIcon(getClass().getResource(BLK_KN_IMG)));
        setHorizontalAlignment(JLabel.CENTER);
        setVerticalAlignment(JLabel.CENTER);
    }
}
